package cn.com.lyj6851.auth.controller;

import java.security.Principal;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * 登录控制器
 * @author Administrator
 *
 */
@RestController
public class LoginController {

    
    
    @RequestMapping("/user")
    public Principal user(Principal user) {
        return user;
    }
    
    @GetMapping("test")
    public String test() {
        return "ttest";
    }
    
}